package com.bajiao.vo.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("UserAdmin")
public class UserAdmin {

    @ApiModelProperty("用户id")
    @Excel(name = "用户ID", width = 20)
    private String id;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("昵称")
    @Excel(name = "昵称", width = 20)
    private String nickname;

    @ApiModelProperty("手机号")
    @Excel(name = "手机号", width = 20)
    private String mobile;

    @ApiModelProperty(value = "性别 1-男 2-女")
    @Excel(name="性别",width=15, replace={"男_1","女_2"})
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    @Excel(name = "年龄", width = 15)
    private String age;

    @ApiModelProperty(value = "邀请码")
    @Excel(name = "邀请码", width = 15)
    private String inviteCode;

    @ApiModelProperty(value = "兴趣")
    @Excel(name = "兴趣", width = 30)
    private String interest;

    @ApiModelProperty("上级昵称")
    @Excel(name = "上级昵称", width = 20)
    private String superNickname;

    @ApiModelProperty("上级手机号")
    @Excel(name = "上级手机号", width = 20)
    private String superMobile;

    @ApiModelProperty("注册时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
